#include "gobang_server.hpp"

const std::string file_root = "../front";

int main(int argc, char* argv[])
{
    if (argc != 3)
    {
        std::cout << "./gobang user passwd" << std::endl;
        return -1;
    }

    users_table_ptr ut(new users_table(argv[1], argv[2]));
    online_manager_ptr ol(new online_manager);
    std::shared_ptr<room_manage> rm(new room_manage(ut, ol));


    goabng_server server(file_root, ut, ol, rm);

    server.start(8080);

    return 0;
}